/**
 * 文件名称:EncodFiter.java
 */
package util;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**   
 *    
 * 项目名称：StudentManage   
 * 类名称：EncodFiter   
 * 类描述：   处理乱码过滤器
 * @version    
 */
public class EncodFiter implements Filter{
	public void destroy() {
		// TODO Auto-generated method stub
		
	}
	//过滤器，过滤乱码
	public void doFilter(ServletRequest arg0, ServletResponse arg1,
			FilterChain arg2) throws IOException, ServletException {
			arg0.setCharacterEncoding("UTF-8");
			arg1.setCharacterEncoding("UTF-8");
			arg2.doFilter(arg0, arg1);
	}
	public void init(FilterConfig arg0) throws ServletException {
		// TODO Auto-generated method stub
		
	}
}
